package p270jp.pxv.android.viewholder;

import android.view.ViewGroup;
import p270jp.pxv.android.commonObjects.model.WorkType;
import p344mj.OnSelectWorkTypeSegmentListener;
import p521th.FlexibleItemAdapterSolidItem;
import p521th.SolidItemViewHolder;

/* renamed from: jp.pxv.android.viewholder.IllustAndMangaAndNovelWithWorkCountSolidItem */
/* loaded from: classes2.dex */
public class IllustAndMangaAndNovelWithWorkCountSolidItem extends FlexibleItemAdapterSolidItem {
    private final WorkType defaultSelectedWorkType;
    private final int illustCount;
    private final int mangaCount;
    private final int novelCount;
    private final int spanSize;
    private final OnSelectWorkTypeSegmentListener workTypeSegmentListener;

    public IllustAndMangaAndNovelWithWorkCountSolidItem(OnSelectWorkTypeSegmentListener aVar, int i, int i2, int i3, WorkType workType, int i4) {
        this.workTypeSegmentListener = aVar;
        this.illustCount = i;
        this.mangaCount = i2;
        this.novelCount = i3;
        this.defaultSelectedWorkType = workType;
        this.spanSize = i4;
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public int getSpanSize() {
        return this.spanSize;
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public SolidItemViewHolder onCreateViewHolder(ViewGroup viewGroup) {
        return IllustAndMangaAndNovelWithWorkCountSegmentViewHolder.createViewHolder(viewGroup, this.workTypeSegmentListener, this.illustCount, this.mangaCount, this.novelCount, this.defaultSelectedWorkType);
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public boolean shouldBeInserted(int i, int i2, int i3, int i4) {
        return i3 == 0;
    }
}
